package io.bdmc.modules.bss.controller;

import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import io.bdmc.common.utils.R;
import io.bdmc.modules.bss.model.ShopLocation;
import io.bdmc.modules.bss.service.ISmkShopService;
import io.bdmc.modules.sys.controller.AbstractController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author huang lu
 * @since 2019-01-21
 */
@RestController
@RequestMapping("/bss/monitor")

public class SmkMonitorController extends AbstractController{
    @Autowired
	private ISmkShopService _shopSvs;

	@RequestMapping("/loc")
	@RequiresPermissions("bss:monitor:loc")
	public R listLocations( ){
		List<ShopLocation> list =  _shopSvs.myLocations(getDeptId());
		return R.ok().putData(list);
    }
}

